import { Connection } from 'mongoose';
import { HttpLogModel } from './schemas/http.schema';

/**mongo数据库表提供者 */
export const MongoLogProviders = [
	{
		provide: 'HTTP_LOG_MODEL',
		useFactory: (connection: Connection) => connection.model('HttpLog',HttpLogModel),
		inject: ['LOG_DATABASE_CONNECTION'],
	},
];
